import Layout from '@/layout'

// 组织架构的路由规则
export default {
  path: '/department',
  name: 'department',
  component: Layout,
  children: [{
    path: '', // '/department',
    // path: '/department',    // 路径:  /department
    // path: 'department',     // 路径   /department/department
    // path: '', // 路径 /department  如果二级路由写 '' 这个路由有一个名字叫默认子路由 也就是把父路由的路径当前当前路由的路径 默认子路由最多只能有一个
    name: 'Department',
    component: () => import('@/views/department'),
    // 路由的元信息：存储额外信息
    meta: {
      title: '组织',
      icon: 'tree'
    }
  }]
}
